<div id="select_area02">
<ul>
{foreach from=$Mapping item=v name=tdfkLoop}
	<li><a href="#area{$smarty.foreach.tdfkLoop.iteration}">{$v.TODOUFUKEN_NAME}</a></li>
			{/foreach}
</ul>
</div>

{foreach from=$Mapping item=v name=tdfkLoop}
<div class="selectdetailbox" id="area{$smarty.foreach.tdfkLoop.iteration}">
	<div class="mt20"><p class="name">{$v.TODOUFUKEN_NAME}</p></div>
</div>

<div  class="innerBlock01">
{foreach from=$v.EKI_DATA item=eki name=ekiLoop}
	<div  class="innerBlock02">
		{if $smarty.foreach.ekiLoop.last && $eki.ENSEN_DATA|@count <= 3}<div class="section02">{* 駅last 沿線複数行なし *}
		{else}<div class="section01">{/if}
			{if $eki.ENSEN_DATA|@count <= 3}<p class="station02">
			{else}<p class="station01">{/if}
				<a href="javascript:SelEkinameMap('{$v.TODOUFUKEN_CD}','{$eki.KEIDO}','{$eki.IDO}','{$eki.EKI_CD}');">{$eki.EKI_NAME}</a></p>
			{foreach from=$eki.ENSEN_DATA item=ensen name=ensenLoop}
		{if $smarty.foreach.ensenLoop.iteration % 3 == 1}
		{if $smarty.foreach.ensenLoop.first}<ul>
		{elseif $smarty.foreach.ensenLoop.iteration + 3 >= $eki.ENSEN_DATA|@count && $smarty.foreach.ekiLoop.last}<div class="section02 pd"><ul>{* 駅last 沿線複数行あり *}
		{else}<div class="section01 pd"><ul>{/if}{/if}{* 沿線複数行あり *}
				<li>{$ensen.ENSEN_NAME}</li>
		{if $smarty.foreach.ensenLoop.last}</ul>
		{elseif $smarty.foreach.ensenLoop.iteration % 3 == 0}</ul></div><!-- /section -->{/if}
			{/foreach}
		</div><!-- /section -->
	</div><!-- /innerBlock02 -->
{/foreach}
</div><!-- /innerBlock01 -->
{/foreach}

<form name="frm_SelEkiname" method="post" action="{$apm.baseurl}search/chizusearch">
<div id="hiddenval">
<input type="hidden" name="PrefCd" />
<input type="hidden" name="x" />
<input type="hidden" name="y" />
<input type="hidden" name="StCd[]" />
{$hiddenTag}
</div>
</form>
